package com.example.demo.demos;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/method")
public class Method {
    @RequestMapping("/hi")
    public String Hi(){
        return "hihihihihi";
    }
    @RequestMapping("/hello")
    public String Hello(){
        return "hellohello";
    }
    @RequestMapping("/yes")
    public String Yes(){
        System.out.println("访问到了");
        return "oh,yes";
    }

}
